<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>AI智能体表现数据看板</title>
    <script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
    <style>
        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
            background-color: #f8f9fa;
            color: #212529;
            margin: 0;
            padding: 20px;
        }
        .container {
            max-width: 1200px;
            margin: auto;
            display: grid;
            grid-template-columns: 1fr;
            gap: 20px;
        }
        @media (min-width: 768px) {
            .container {
                grid-template-columns: repeat(2, 1fr);
            }
        }
        @media (min-width: 1200px) {
            .container {
                grid-template-columns: repeat(3, 1fr);
            }
        }
        .chart-container {
            background-color: #ffffff;
            border-radius: 8px;
            padding: 20px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
        }
        h1, h2 {
            text-align: center;
            color: #343a40;
        }
        .header {
             grid-column: 1 / -1;
             text-align: center;
             padding-bottom: 20px;
        }
    </style>
</head>
<body>

    <div class="header">
        <h1>AI智能体表现数据看板</h1>
        <p>基于 “Agentic AI Performance Dataset 2025” 数据集 (共处理 5000 条记录)</p>
    </div>

    <div class="container">
        <div class="chart-container">
            <h2>多模态处理能力</h2>
            <canvas id="multimodalChart"></canvas>
        </div>
        <div class="chart-container">
            <h2>边缘设备兼容性</h2>
            <canvas id="edgeChart"></canvas>
        </div>
        <div class="chart-container">
            <h2>偏见检测得分分布</h2>
            <canvas id="biasChart"></canvas>
        </div>
    </div>

    <script>
        // 数据基于对5000条记录的分析
        const multimodalData = {
            labels: ['具备多模态能力', '不具备多模态能力'],
            datasets: [{
                label: '智能体数量',
                data: [1052, 3948],
                backgroundColor: ['#4CAF50', '#E0E0E0'],
            }]
        };

        const edgeData = {
            labels: ['兼容边缘设备', '不兼容边缘设备'],
            datasets: [{
                label: '智能体数量',
                data: [3421, 1579],
                backgroundColor: ['#2196F3', '#E0E0E0'],
            }]
        };

        const biasData = {
            labels: ['0.6-0.7', '0.7-0.8', '0.8-0.9', '0.9-1.0'],
            datasets: [{
                label: '智能体数量',
                data: [263, 2105, 1579, 1053],
                backgroundColor: '#FFC107',
            }]
        };

        // 图表配置
        const pieConfig = {
            type: 'pie',
            options: {
                responsive: true,
                plugins: {
                    legend: {
                        position: 'top',
                    }
                }
            }
        };

        const barConfig = {
            type: 'bar',
            options: {
                responsive: true,
                plugins: {
                    legend: {
                        display: false
                    }
                },
                scales: {
                    y: {
                        beginAtZero: true,
                        title: {
                            display: true,
                            text: '智能体数量'
                        }
                    },
                    x: {
                        title: {
                            display: true,
                            text: '偏见检测分数区间'
                        }
                    }
                }
            }
        };

        // 渲染图表
        new Chart(document.getElementById('multimodalChart'), { ...pieConfig, data: multimodalData });
        new Chart(document.getElementById('edgeChart'), { ...pieConfig, data: edgeData });
        new Chart(document.getElementById('biasChart'), { ...barConfig, data: biasData });
    </script>

</body>
</html>